package teacher;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Teacher {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long teaId;
	
	@Persistent
	private String teaName;
	
	public Teacher(String name){
		this.teaName = name;
	}
	
	public Teacher(){
		this.teaName = "NA";
	}
	
	public Long getId(){
		return teaId;
	}
	
	public String getName(){
		return teaName;
	}
	
	public void setName(String name){
		this.teaName = name;
	}
}
